New: LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
https://bugs.freedesktop.org/show_bug.cgi?id=56437
Priority: medium
Bug ID: 56437
Assignee: [email protected]
Summary: LLVM ERROR: Cannot select: target intrinsic
%llvm.AMDIL.mad when running Heaven
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: unspecified
Component: Drivers/Gallium/r600
Product: Mesa
Heaven sometimes crashes when loading with an error output :
LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad
I can partially reproduce this bug.
It happens from time to time on Heaven start.
To reproduce it I use the Heaven launcher (using Archlinux AUR package), just untick fullscreen checkbox and choose 1024x768 and click run.
If the crash is not triggered I close the unigine render window and just click once again "Run" and so on.
It happens about once every 10 runs when I test. (I know it's not convenient at all to reproduce it but it is a very rare bug...) I also had it once with Heroes of Newerth.
using R600_LLVM=0, radeon seems to be not hit by this problem.
Using git head and r600g on BARTS HD6870.
I might also add that I use these env vars (some are probably outdated...) R600_ENABLE_S3TC=1
R600_GLSL130=1
R600_STREAMOUT=1
Using Xorg 1.13 and linux 3.6.3
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
https://bugs.freedesktop.org/show_bug.cgi?id=56437
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|All |Linux (All)
Version|unspecified |gitSignature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #1 from [email protected] ---
I was unclear about LLVM:
I am using the llvm glsl backend when I trigger this error.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #2 from Andy Furniss <[email protected]> --- I saw this yesterday after rebuilding Mesa and running nexuiz. Running again worked without error.
This is the second time I've seen it, the first was a couple of weeks ago, again after a rebuild of mesa this time with etqw.
I couldn't reproduce, but did get more output -
LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad Stack dump:
0. Running pass 'Function Pass Manager' on module 'tgsi'.
1. Running pass 'AMDGPU DAG->DAG Pattern Instruction Selection' on
function '@main'
I am using llvm 3.1 on HD4890.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #3 from Michel Dänzer <[email protected]> ---
Does the environment variable DRAW_USE_LLVM=0 work around the problem as well?
Can you get a backtrace for the crash?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #4 from [email protected] ---
I could reproduce the crash with DRAW_USE_LLVM=0.
I did not manage to get a backtrace. I probably need to recompile LLVM with debug.
I'll do it when I have time.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #5 from [email protected] ---
So I recompiled LLVM with debug symbols but I can't seem to get a backtrace... Looks like it's because the libGL is loaded via dlopen or something like that.
Any hints on how to procedd with gdb ? I tried to use symbol-file and load libLLVM then setting a breakpoint where it prints the error but is didn't stop when it ran this code...
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #6 from Michel Dänzer <[email protected]> --- (In reply to comment #5)
How are you specifying the breakpoint location? IME it's most reliable to specify the source code file and line, e.g. foobar.c:42
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #7 from [email protected] ---
(In reply to comment #6)
This is what I did and it never halted on the breakpoint.
I'll try again when I have time.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #8 from Michel Dänzer <[email protected]> --- (In reply to comment #7)
Quoted 1 line
This is what I did and it never halted on the breakpoint.
After the problem occurs, does 'info breakpoints' show that gdb was able to actually resolve the breakpoint location?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #9 from [email protected] ---
Created attachment 69326
--> https://bugs.freedesktop.org/attachment.cgi?id=69326&action=edit
backtrace
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #10 from [email protected] ---
Finally got it!
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #11 from [email protected] ---
this was checked with llvm 3.1 and mesab3921e1f53833420e0a0fd581f741744e7957a05
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #12 from Tom Stellard <[email protected]> --- Created attachment 69334
--> https://bugs.freedesktop.org/attachment.cgi?id=69334&action=edit
Possible fix
This is a strange bug. There must be a race condition somewhere. Does this patch help? If it doesn't, can you reproduce this with an LLVM 3.2 tree:
git fetch git://people.freedesktop.org/~tstellar/llvm master
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #13 from Tom Stellard <[email protected]> --- (In reply to comment #12)
Quoted 7 lines
Created attachment 69334 [details]
Possible fixThis is a strange bug. There must be a race condition somewhere. Does this patch help? If it doesn't, can you reproduce this with an LLVM 3.2 tree:
git fetch
git://people.freedesktop.org/~tstellar/llvmmaster
I should add you need to build the branch of LLVM with --enable-experimental-targets=AMDGPU
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
--- Comment #14 from [email protected] ---
(In reply to comment #12)
Quoted 7 lines
Created attachment 69334 [details]
Possible fixThis is a strange bug. There must be a race condition somewhere. Does this patch help? If it doesn't, can you reproduce this with an LLVM 3.2 tree:
git fetch
git://people.freedesktop.org/~tstellar/llvmmaster
With your patch applied I can't seem to reproduce the crash.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 56437] LLVM ERROR: Cannot select: target intrinsic %llvm.AMDIL.mad when running Heaven
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=56437
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #15 from [email protected] ---
Not seen in a while with vanilla mesa, closing.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel